Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(protocol-designer): fix dropdown selection for moveLabware #14697

Merged
merged 5 commits into from
Mar 20, 2024

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Mar 19, 2024

closes RQA-2503

Overview

The bug outlined in the ticket shows that once you create a timeline error, the dropdown options are incorrect when editing. This PR fixes that. The logic to determine if the presaved step was a moveLabware or moveLiquid was not good enough for if there was a timeline error because the presaved step info gets deleted and returns null.

The fix was to split the selector up to accommodate the 2 cases since idk what info to rely on since we can't rely on the presaved step info.

Test Plan

Create a flex protocol and add a gripper. Add an off deck labware. Move the offdeck labware to the deck using the gripper. The "labware off-deck" error should arise. Edit it by changing the labware to the tiprack. The error should resolve and the step should be properly created.

Changelog

  • split the selector into 2 selectors to remove the brittle branching logic, create a new MoveLiquidField to keep the logic for move labware and move liquid separate
  • fix test

Review requests

see test plan

Risk assessment

low

@jerader jerader requested review from a team and removed request for a team March 19, 2024 20:27
Copy link
Contributor

@koji koji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a few comments, but overall the changes make sense to me.
the sandbox worked as expected.

protocol-designer/src/ui/labware/selectors.ts Outdated Show resolved Hide resolved
protocol-designer/src/ui/labware/selectors.ts Outdated Show resolved Hide resolved
protocol-designer/src/ui/labware/selectors.ts Outdated Show resolved Hide resolved
@jerader jerader merged commit 457fb85 into edge Mar 20, 2024
14 checks passed
@jerader jerader deleted the pd_fix-dropdown branch March 20, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants